package com.lagou.rpc.consumer.server;

import com.lagou.rpc.api.IUserService;
import com.lagou.rpc.consumer.proxy.RpcClientProxy;
import org.springframework.stereotype.Service;

/**
 * @param null
 * @author oyz
 * @version 1.0
 * @description: TODO
 * @date 2022/2/23 21:54
 */
@Service
public class UserServer {

    /**
     * @description: 创建代理对象
     * @author 10843
     * @param
     * @date 2022/2/23 21:56
     * @version 1.0
     */
    public IUserService getIUserService() {
        return (IUserService) RpcClientProxy.createProxy(IUserService.class);
    }
}
